<div class="layui-row">
    <div class="layui-col-xs6">
        <table id="dict-group-table"></table>
    </div>
    <div class="layui-col-xs6" style="padding-left: 5px;">
        <table id="dict-item-table"></table>
    </div>
</div>

<script type="text/html" id="dict-group-table-toolbar">
    <button class="layui-btn layui-btn-sm layui-btn-primary layui-border-green" lay-event="add" perm='add-dict-group'>
        <i class="layui-icon-add-circle layui-icon"></i>&nbsp;字典组
    </button>

    <input type="text" name="search" autocomplete="off" placeholder="输入名称、编码、说明等模糊搜索……"
           lay-affix="clear" class="layui-input" style="width:280px;"/>

    <button class="layui-btn layui-btn-sm" lay-event="search">
        <i class="layui-icon-search layui-icon"></i>&nbsp;搜索
    </button>
    <button class="layui-btn layui-btn-sm layui-btn-primary layui-border-green" lay-event="reset"
            style="margin-left: 0;">
        <i class="layui-icon-refresh layui-icon"></i>&nbsp;重置
    </button>
</script>

<script type="text/html" id="dict-group-table-tools">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" lay-event="md" perm="modify-dict-group">
            编辑
        </button>
        <button class="layui-btn layui-btn-primary layui-border-red layui-btn-xs" lay-event="rm" perm="remove-dict-group">
            删除
        </button>
    </div>
</script>

<script type="text/html" id="dict-item-table-toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm layui-btn-primary layui-border-green" lay-event="add" perm="add-dict-item">
            <i class="layui-icon-add-circle layui-icon"></i>&nbsp;字典项
        </button>
        <span class="layui-font-gray layui-font-22 layui-text" id="current-dict-group"></span>
    </div>
</script>

<script type="text/html" id="dict-item-table-tools">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-primary layui-border-blue layui-btn-xs" lay-event="md" perm="modify-dict-item">
            编辑
        </button>
        <button class="layui-btn layui-btn-primary layui-border-red layui-btn-xs" lay-event="rm" perm="remove-dict-item">
            删除
        </button>
    </div>
</script>